package common

import "encoding/json"

func Tojson(obj any) string {
	// 带格式的json  MarshalIndent
	dj, _ := json.MarshalIndent(obj, "", "   ")
	return string(dj)
}
